package com.uyun.rbac.permission.service;


import com.uyun.rbac.permission.entity.MenuEntity;
import com.uyun.rbac.permission.entity.PermissionEntity;
import com.uyun.rbac.permission.entity.RoleEntity;

import java.util.List;
import java.util.Map;

public interface PermissionService {

    /***permission page***/
    List<PermissionEntity> getPermissionListForPage(Map<String, String> paraMap);
    boolean addPermissionEntity(PermissionEntity entity);

    /***role page***/
    List<RoleEntity> getRoleListForPage(Map<String, String> paraMap);
    RoleEntity getRoleEntityById(int id);
    boolean editRoleHasMenu(String roleId, String[] menuIds);
    boolean editRoleHasPerms(String roleId, String[] permIds);
    List<RoleEntity> getAllRoleEntity();

    List<PermissionEntity> getAllPermissionEntity();

    /***menu***/
    List<MenuEntity> getMenuList(String username);
    List<MenuEntity> getAllMenu();

}
